package com.ruoyi.sys.garden.service.impl;

import java.util.List;

import com.ruoyi.sys.garden.entity.TbService;
import com.ruoyi.sys.garden.mapper.TbServiceMapper;
import com.ruoyi.sys.garden.service.ITbServiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 智能客服Service业务层处理
 * 
 * @author jinsuo
 * @date 2022-05-24
 */
@Service
public class TbServiceServiceImpl implements ITbServiceService
{
    @Autowired
    private TbServiceMapper tbServiceMapper;

    /**
     * 查询智能客服
     * 
     * @param sId 智能客服主键
     * @return 智能客服
     */
    @Override
    public TbService selectTbServiceBySId(Long sId)
    {
        return tbServiceMapper.selectTbServiceBySId(sId);
    }

    /**
     * 查询智能客服列表
     * 
     * @param tbService 智能客服
     * @return 智能客服
     */
    @Override
    public List<TbService> selectTbServiceList(TbService tbService)
    {
        return tbServiceMapper.selectTbServiceList(tbService);
    }

    /**
     * 新增智能客服
     * 
     * @param tbService 智能客服
     * @return 结果
     */
    @Override
    public int insertTbService(TbService tbService)
    {
        return tbServiceMapper.insertTbService(tbService);
    }

    /**
     * 修改智能客服
     * 
     * @param tbService 智能客服
     * @return 结果
     */
    @Override
    public int updateTbService(TbService tbService)
    {
        return tbServiceMapper.updateTbService(tbService);
    }

    /**
     * 批量删除智能客服
     * 
     * @param sIds 需要删除的智能客服主键
     * @return 结果
     */
    @Override
    public int deleteTbServiceBySIds(Long[] sIds)
    {
        return tbServiceMapper.deleteTbServiceBySIds(sIds);
    }

    /**
     * 删除智能客服信息
     * 
     * @param sId 智能客服主键
     * @return 结果
     */
    @Override
    public int deleteTbServiceBySId(Long sId)
    {
        return tbServiceMapper.deleteTbServiceBySId(sId);
    }
}
